
# 获取登录参数
# https://passport.fang.com/getslidecodeinit.api

import requests

cookies = {
    'global_cookie': '06ww8szfkv7j19j01ah2ch56m19los5x9c4',
    '__utmc': '147393320',
    '__utmz': '147393320.1699593241.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)',
    'city': 'bj',
    'g_sourcepage': 'txz_dl%5Egg_pc',
    '__utma': '147393320.145507829.1699593241.1699862870.1699923834.3',
    'token': '7676f779423442ac94d89425f9a495d6',
    'unique_cookie': 'U_06ww8szfkv7j19j01ah2ch56m19los5x9c4*18',
    '__utmb': '147393320.4.10.1699923834',
}

headers = {
    'Accept': '*/*',
    'Accept-Language': 'zh-CN,zh;q=0.9',
    'Cache-Control': 'no-cache',
    'Connection': 'keep-alive',
    # 'Cookie': 'global_cookie=06ww8szfkv7j19j01ah2ch56m19los5x9c4; __utmc=147393320; __utmz=147393320.1699593241.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); city=bj; g_sourcepage=txz_dl%5Egg_pc; __utma=147393320.145507829.1699593241.1699862870.1699923834.3; token=7676f779423442ac94d89425f9a495d6; unique_cookie=U_06ww8szfkv7j19j01ah2ch56m19los5x9c4*18; __utmb=147393320.4.10.1699923834',
    'Pragma': 'no-cache',
    'Referer': 'https://passport.fang.com/',
    'Sec-Fetch-Dest': 'script',
    'Sec-Fetch-Mode': 'no-cors',
    'Sec-Fetch-Site': 'same-site',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36',
    'sec-ch-ua': '"Google Chrome";v="119", "Chromium";v="119", "Not?A_Brand";v="24"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"Windows"',
}

response = requests.get(
    'https://recaptcha.fang.com/?c=index&a=codeDrag&start=1699925265343&end=1699925266756&i=0b04604c09c06c0843200610801cb181840ca59060f602d800e021802e71c0b5b4c37c1180c0cc5032131c22d87005e002c02d0600720247880a460310b8c241c6530c30380165f3f0096006df695900c402b003a04b21000a00eaba01d80137c01dc0338db100546e215b48b00108da393943030587300079440250d8020b1313e8029bda640118034aeb929998b003b059b0dadbe4004afa6800cac860dbeae8035a64d8038a64031877e32730620801391375809b2041582f5b316290019a938ee8979657a2abed70a820a0721fc0f1f3c0ab5cc129c046f1d308a22aa9dcc0002800889801aaea65dc99718b59ce46053948fa613105cab61000dc0140905c8c69342265be7f64703414e7078d21d0d87c29180bc5a226445d0015d08d8ff853511830442a130b8623712ccd2e9fa934f3e156e400288b800e6589f93251f8c271339649e4b4720522ae56906723099cd8f97b2495cf24a2e0cc578ddcdb77d9402076b0198c05028195d8d41692c30200f4fae49ecf77ae466689c90318280b42372328b420218c1c65ac83012713a1b4d7a33ac04020800000&t=W3KO_FZoW1mT3G0tL11b0mXmX9Xu684NbvU2Y623Y12fM9SG_3WMbHGu0Zm0r00p0y003_103dA_14H8HtuOoWG4e6183WWA20JTeOq8C41mOB2WG00-u0Ul00m0300Cp4wWG21WnGI4eE0410G63010G81WG0O6063W07-W&gt=35c3d8dffffd310ca05d87cea3b52786&challenge=0c6f9d5053847832a6cc8a843aea123a&callback=fangcheck_1699925273125&_200226',
    cookies=cookies,
    headers=headers,
)
print(response.text)


# "https://recaptcha.fang.com/?c=index&a=codeDrag&start=1699925265343&end=1699925266756&i=0b04604c09c06c0843200610801cb181840ca59060f602d800e021802e71c0b5b4c37c1180c0cc5032131c22d87005e002c02d0600720247880a460310b8c241c6530c30380165f3f0096006df695900c402b003a04b21000a00eaba01d80137c01dc0338db100546e215b48b00108da393943030587300079440250d8020b1313e8029bda640118034aeb929998b003b059b0dadbe4004afa6800cac860dbeae8035a64d8038a64031877e32730620801391375809b2041582f5b316290019a938ee8979657a2abed70a820a0721fc0f1f3c0ab5cc129c046f1d308a22aa9dcc0002800889801aaea65dc99718b59ce46053948fa613105cab61000dc0140905c8c69342265be7f64703414e7078d21d0d87c29180bc5a226445d0015d08d8ff853511830442a130b8623712ccd2e9fa934f3e156e400288b800e6589f93251f8c271339649e4b4720522ae56906723099cd8f97b2495cf24a2e0cc578ddcdb77d9402076b0198c05028195d8d41692c30200f4fae49ecf77ae466689c90318280b42372328b420218c1c65ac83012713a1b4d7a33ac04020800000&t=W3KO_FZoW1mT3G0tL11b0mXmX9Xu684NbvU2Y623Y12fM9SG_3WMbHGu0Zm0r00p0y003_103dA_14H8HtuOoWG4e6183WWA20JTeOq8C41mOB2WG00-u0Ul00m0300Cp4wWG21WnGI4eE0410G63010G81WG0O6
# 063W07-W&gt=35c3d8dffffd310ca05d87cea3b52786&challenge=0c6f9d5053847832a6cc8a843aea123a&callback=fangcheck_1699925273125&_200226"


"0c6f9d5053847832a6cc8a843aea123a"